﻿using BO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Mvc;
using BO;
using WebUI.Models;

namespace WebUI
{

    [DBUserAuthorize]
    public class BaseController:System.Web.Mvc.Controller
    {
        protected SysUser CurrentUser
        {
            get { return Session["CurrentUser"] as SysUser; }
            set { Session["CurrentUser"] = value; }
        }

        protected override void OnException(ExceptionContext filterContext)
        {
            filterContext.HttpContext.Response.Redirect("/Error");
            
        }
    }
}
